package com.cp.yn.http.api

import com.common.base.common.SpecialModule
import com.cp.yn.bean.LoginBean
import com.cp.yn.bean.SmsBean
import io.reactivex.Flowable
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

/**
 * 三疯
 * *************************
 *
 * *************************
 */
interface ApiLogin {
    //获取验证码
    @SpecialModule(module = SpecialModule.encryption)
    @POST("/cloudpick/rest/api/v1/logon/sendsmsV2")
    suspend fun apiSendSmsUrl (@Body body: Any): SmsBean

    //登录
    @POST("/cloudpick/rest/api/v1/logon/entry")
    suspend fun login(@Body body: Any):LoginBean

    //java 写法登录
    @POST("/cloudpick/rest/api/v1/logon/entry")
     fun loginJava(@Body body: Any): Flowable<LoginBean>
}